mm: fix broken tainted value in mark_page_free
authorPenny Zheng <penny.zheng@arm.com>
Wed, 22 Sep 2021 14:18:30 +0000 (16:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 14:18:30 +0000 (16:18 +0200)
commit289610483fc43e4082f0fc00c0ea8bca571b7ee5
tree3c62bace9ec70b4c94bde01fa0be81840228f9e9
parent01a8a51412343b8243403bbbaf0859db9a1edfab
mm: fix broken tainted value in mark_page_free

Commit 540a637c3410780b519fc055f432afe271f642f8 defines a new
helper mark_page_free to extract common codes, while it accidently
breaks the local variable "tainted".

This patch fix it by letting mark_page_free() return bool of whether the
page is offlined and rename local variable "tainted" to "pg_offlined".

Coverity ID: 1491872
Fixes: 540a637c3410 ("xen: introduce mark_page_free")
Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c